package com.job.springSea.work0714;

/**
 * @author 于春海
 * @version 1.0
 * @since 2022-07-14 16:03:18
 */
public class Item {
    private String name;

    public Item(String name) {
        this.name = name;
    }

    public Item() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    protected void finalize() throws Throwable {
        System.out.println(this.name+"最后行为:释放内存资源!");
    }
}